//
//  MovieManager.h
//  EasyToo
//
//  Created by zhengzhe on 13-8-24.
//
//

#import "ServerCommunicationDelegate.h"
#import "CinemaInfo.h"
#import "CinemaSeatInfo.h"
#import "CommonTicketInfo.h"


@protocol MovieManagerDelegate <NSObject>
@optional

//查询当日上映电影
- (void)qryOnlineMoviesFinish:(BOOL)isSuccess
                        Movies:(NSMutableArray*)movieInfoArray;

//查看电影详情
- (void)qryDetailMoviesFinish:(BOOL)isSuccess
                       Movies:(NSMutableArray*)movieInfoArray;

//查看影院
- (void)qryCinemaFinish:(BOOL)isSuccess
                 Cinema:(CinemaInfo*)cinemaArray;

//查看在线座位
- (void)qryOnlieSeatsFinish:(BOOL)isSuccess
             CinemaSeatInfo:(CinemaSeatInfo*)cinemaArray;

//购买在线座位
- (void)buyOnlineTicket:(BOOL)isSuccess
                orderId:(NSString*)orderId
                     rk:(NSString*)rk;

//购买通票
- (void)buyCommonTicket:(BOOL)isSuccess
                     tn:(NSString*)tn;

//确认购买
- (void)confirmOnlineTicket:(BOOL)isSuccess
                         tn:(NSString*)tn;

//查看通票
- (void)qryCommontTickets:(BOOL)isSuccess
             commonTicket:(CommonTicketInfo*)cinemaArray;

@end




@interface MovieManager : NSObject <ServerCommunicationDelegate>

@property (nonatomic, assign) id<MovieManagerDelegate> delegate;



+ (MovieManager*)shareManager;

//查询当日上映电影
- (void)qryOnlineMovie;

//查看电影详情
- (void)qryMovieDetail:(NSString*)filmId;

//查看影院
- (void)qryCinemaDetail:(NSString*)filmId cinemaId:(NSString*)cinemaId;

//查看在线座位
- (void)qryOnlineDetail:(NSString*)foretellId hallId:(NSString*)hallId cinemaId:(NSString*)cinemaId;

//购买在线票
- (void)buyOnlineTicket:(NSString*)foretellId
                seatIds:(NSString*)seatIds
                   fees:(NSString*)fees
                 prices:(NSString*)prices
                  count:(NSString*)count;

//购买通票
- (void)buyCommonTicket:cinemaName
               cinemaId:cinemaId
                  count:count
              userPhone:userPhone
                  price:price
                    tid:tid;

//确认购买 
- (void)confirmonlineTickets:(NSString*)orderId
                  cinemaName:(NSString*)cinemaName
                      prices:(NSString*)prices
                    showtime:(NSString*)showtime
                    showdate:(NSString*)showdate
                  foretellId:(NSString*)foretellId
                          rk:(NSString*)rk
                        fees:(NSString*)fees
                       count:(NSString*)count
                    allprice:(int)allprice;

//查看通票
- (void)qryCommonTicketInfo;


@end
